<template>
	<view class="content">
		<template v-if="state">
			<image :src="baseUrl+'img/my/success.png'" class="icon"></image>
			<text class="result">取消成功</text>
			<text class="tips">您已取消成功，期待您下次预约！</text>
			<view class="sure">
				确定
			</view>
		</template>
		<template v-else>
			<image :src="baseUrl+'img/my/fail.png'" class="icon"></image>
			<text class="result">取消失败</text>
			<text class="tips">别灰心，再次取消试试！</text>
			<view class="sure">
				再次取消
			</view>
			<view class="back">
				返回
			</view>
		</template>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				state: false,
				baseUrl: this.$baseUrl,
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.back {
		width: 250rpx;
		height: 80rpx;
		border-radius: 6rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		font-weight: 500;
		font-size: 24rpx;
		color: #010101;
		letter-spacing: 5rpx;
		margin-top: 25rpx;
		border: 1rpx solid #010101;
	}

	.sure {
		width: 250rpx;
		height: 80rpx;
		border-radius: 6rpx;
		background: #121212;
		display: flex;
		justify-content: center;
		align-items: center;
		font-weight: 500;
		font-size: 24rpx;
		color: #FFFFFF;
		letter-spacing: 5rpx;
		margin-top: 90rpx;
	}

	.tips {
		font-weight: 500;
		font-size: 24rpx;
		color: #8E8E8E;
		margin-top: 33rpx;
	}

	.result {
		font-weight: 700;
		font-size: 32rpx;
		color: #121212;
		letter-spacing: 6rpx;
		margin-top: 50rpx;
	}

	.icon {
		width: 220rpx;
		height: 220rpx;
		margin-top: 190rpx;
	}

	.content {
		width: 100%;
		height: 100vh;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
</style>